/*
 * FrameConfiguracao.java
 *
 * Created on 5 de Julho de 2007, 00:23
 */

package br.com.grillo.jturbonote;

/**
 *
 * @author  grillo
 */
public class FrameConfiguracao extends javax.swing.JDialog {

    /** Creates new form FrameConfiguracao */
    public FrameConfiguracao(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
    private void initComponents() {

        pNota = new javax.swing.JPanel();
        lbCorFundoTexto = new javax.swing.JLabel();
        lbCorFundo = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

        pNota.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), "Nota"));

        lbCorFundoTexto.setText("Cor de Fundo :");

        lbCorFundo.setText(".");
        lbCorFundo.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                lbCorFundoMouseClicked(evt);
            }
        });

        javax.swing.GroupLayout pNotaLayout = new javax.swing.GroupLayout(pNota);
        pNota.setLayout(pNotaLayout);
        pNotaLayout.setHorizontalGroup(
            pNotaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pNotaLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(lbCorFundoTexto)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(lbCorFundo, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(172, Short.MAX_VALUE))
        );
        pNotaLayout.setVerticalGroup(
            pNotaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pNotaLayout.createSequentialGroup()
                .addGroup(pNotaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lbCorFundoTexto)
                    .addComponent(lbCorFundo, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(148, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(21, 21, 21)
                .addComponent(pNota, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(29, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pNota, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(107, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

private void lbCorFundoMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lbCorFundoMouseClicked
    FrameCor cor = new FrameCor(this, true);
    cor.setComponentResultado(lbCorFundo);
    cor.setVisible(true);
}//GEN-LAST:event_lbCorFundoMouseClicked
    
    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                FrameConfiguracao dialog = new FrameConfiguracao(new javax.swing.JFrame(), true);
                dialog.addWindowListener(new java.awt.event.WindowAdapter() {
                    public void windowClosing(java.awt.event.WindowEvent e) {
                        System.exit(0);
                    }
                });
                dialog.setVisible(true);
            }
        });
    }
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel lbCorFundo;
    private javax.swing.JLabel lbCorFundoTexto;
    private javax.swing.JPanel pNota;
    // End of variables declaration//GEN-END:variables
    
}
